package com.cloudbroker.bcs.common.constants.type;

/**
 * Created by lili19289 on 2016/12/2.
 */
public enum BusinessType {

    REGISTER{
        public  int toInt(){
            return 10000;
        }
        public  String toName(){
            return "注册";
        }
        public  String toTitle(){
            return "";
        }
    },
    LOGIN{
        public  int toInt(){
            return 10001;
        }
        public  String toName(){
            return "登录";
        }
        public  String toTitle(){
            return "忠粉达人";
        }
    },
    PRAISE{
        public  int toInt(){
            return 10002;
            }
        public  String toName(){
            return "点赞";
        }
        public  String toTitle(){
            return "";
        }
    },
    SHARE{
        public  int toInt(){
            return 10003;
        }
        public  String toName(){
            return "分享";
        }
        public  String toTitle(){
            return "观点达人";
        }
    }
    ,
    COMMENT{
        public  int toInt(){
            return 10004;
        }
        public  String toName(){
            return "评论";
        }
        public  String toTitle(){
            return "";
        }
    }
    ,
    COMMENT_TOP{
        public  int toInt(){
            return 10005;
        }
        public  String toName(){
            return "评论置顶";
        }
        public  String toTitle(){
            return "";
        }
    }
    ,
    FOCUS_LEADER{
        public  int toInt(){
            return 10006;
        }
        public  String toName(){
            return "关注投顾";
        }
        public  String toTitle(){
            return "";
        }
    }
    ,
    FOCUS_COMBINE{
        public  int toInt(){
            return 10007;
        }
        public  String toName(){
            return "关注组合";
        }
        public  String toTitle(){
            return "";
        }
    }
    ,
    SUBSCRIBE{
        public  int toInt(){
            return 10008;
        }
        public  String toName(){
            return "订阅";
        }
        public  String toTitle(){
            return "";
        }
    }
    ,
    COMB_ENTRUST{
        public  int toInt(){
            return 10009;
        }
        public  String toName(){
            return "跟投";
        }
        public  String toTitle(){
            return "";
        }
    }
    ,
    ASK{
        public  int toInt(){
            return 10010;
        }
        public  String toName(){
            return "提问";
        }
        public  String toTitle(){
            return "提问达人";
        }
    }
    ,
    FEEDBACK{
        public  int toInt(){
            return 10011;
        }
        public  String toName(){
            return "反馈";
        }
        public  String toTitle(){
            return "";
        }
    }

    ;


    public abstract int toInt();
    public abstract String toName();
    public abstract String toTitle();

    public static BusinessType convertEnum(int business_type){
        return BusinessType.values()[business_type-10001];

    }
}
